<extend name="Public/base" />
<block name="style"></block>
<block name="script"></block>
<block name="body">
    <div class="main-title">
        <h2>广告模版</h2>
    </div>
    <div class="cf">
        <a class="btn" href="{:U('add')}">新 增</a>
    </div>
    <!-- 数据表格 -->
    <div class="data-table">
        <table class="table_style1">
            <thead>
                <tr class="table_header">
                    <td width="60">id</td>
                    <td width="80">模板名称</td>
                    <td width="60">模板类型</td>
                    <td>模板内容</td>
                    <td width="110">操作</td>
                </tr>
            </thead>
            <tbody>
                <volist name="lists" id="list">
                    <tr>
                        <td>{$list.id}</td>
                        <td>{$list.template_name}</td>
                        <td>{$list.ad_type}</td>
                        <td class="text_left">{$list.template_content}</td>
                        <td>
                            <a class="edit" href="{:U('edit',array('id'=>$list['id']))}">编辑</a>
                            <a href="{:U('del',array('id'=>$list['id']))}">删除</a>
                        </td>
                    </tr>
                </volist>
            </tbody>
        </table>
    </div>
</block>